package com.uk.ui.fatura;

import com.vaadin.event.ItemClickEvent.ItemClickListener;
import com.vaadin.ui.Tree;

public class FaturaNavigationTree extends Tree{

	public static final Object KRIJO = "Krijo fature";
	public static final Object MBYLL = "Mbyll fature";
	public static final Object PRINTO = "Printo fature";
	public static final Object ANULLO = "Anullo fature";
	public static final Object FATURA_PA_MBYLLUR = "Fatura te pambyllura";
	public static final Object FATURA_PA_REGJISTRUAR = "Fatura te paregjistruara";
	public static final Object FATURA_ANULLUAR = "Fatura te anulluara";
	
	public FaturaNavigationTree(FaturaPanel faturaPanel){
		super();
		addItem(KRIJO);
		addItem(MBYLL);
		addItem(PRINTO);
		addItem(ANULLO);
		addItem(FATURA_PA_MBYLLUR);
		addItem(FATURA_PA_REGJISTRUAR);
		addItem(FATURA_ANULLUAR);
		
		setChildrenAllowed(KRIJO, false);
		setChildrenAllowed(MBYLL, false);
		setChildrenAllowed(PRINTO, false);
		setChildrenAllowed(ANULLO, false);
		setChildrenAllowed(FATURA_PA_MBYLLUR, false);
		setChildrenAllowed(FATURA_PA_REGJISTRUAR, false);
		setChildrenAllowed(FATURA_ANULLUAR, false);
		
		setSelectable(true);
		setNullSelectionAllowed(false);
		this.addListener((ItemClickListener)faturaPanel);
	}
}
